#include <QtGui/QApplication>
#include "../../ExecutionTerminalGUI/src/executionterminalform.h"
#include "../../ExecutionTerminalGUI/src/executionterminalstyle.h"
#include "../../ExecutionTerminalEngine/src/executionterminalengine.h"
#include "../../ExecutionTerminalGUI/src//utils/heapdump.h"
#include <QtDebug>

int main(int argc, char *argv[])
{  

    QCoreApplication::setOrganizationName("AstraSoft Technology");
    QCoreApplication::setApplicationName("ExecutionTerminal");

    QApplication::setStyle(new ExecTerminalImplNS::ExecutionTerminalStyle);
    QApplication a(argc, argv);
    Q_INIT_RESOURCE(executionterminal);
 
    qDebug() << "Qt version:" << qVersion();    
    ExecutionTerminalForm w;
    w.setTerminalEngine(new ExecutionTerminalEngine());	
    w.show();
    a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
    return a.exec();
    heapdump();    
}

